package com.cy.utils;


/**
 * @author Administrator
 */
public class VehicleUtil
{

    /**
     * 车辆类型映射
     *
     * @param vehicleType 车辆类型
     * @return 车辆类型代码
     */
    public static String convertToVehicleType(String vehicleType)
    {
        if (null == vehicleType || vehicleType.isEmpty())
        {
            return null;
        }
        else if ("01".equalsIgnoreCase(vehicleType))
        {
            return "K11";
        }
        else if ("02".equalsIgnoreCase(vehicleType))
        {
            return "K33";
        }
        else
        {
            return "X99";
        }
    }


    /**
     * 号牌类型映射
     *
     * @param plateType 号牌类型
     * @return
     */
    public static String coverToPlateType(String plateType)
    {
        if ("1".equalsIgnoreCase(plateType))
        {
            return "01";
        }
        else if ("2".equalsIgnoreCase(plateType))
        {
            return "02";
        }
        else
        {
            return "99";
        }
    }

}
